[@plaintext.layout title="QuickView"]
h1. if condition
[#assign user="Z"/]
User, 
[#if user = "Big Joe"]
  It is Big Joe
[/#if]
[#if user != "Big Joe"]
  It is not Big Joe
[/#if]

[#assign x = 12.0]
[#if x <= 12]
  x is less or equivalent with 12
[/#if]
[#assign x = 11.99]
[#assign hot = false]
[#assign color = "green"]
[#if x < 12 && color = "green"]
  We have less than 12 things, and they are green.
[/#if]
[#if !hot] [#-- here hot must be a boolean --]
  It's not hot.
[/#if]

h1. if else
[#assign x = 11]
[#if x < 12]
  X is less than 12
[#else]
  X is greater than 12
[/#if]

h1. Watch out for greater sign compare
[#assign x = 13]
[#if (x > 12) ]
  We have less than 12 things, and they are green.
[/#if]

[#-- If you were to use angle brackets, above will error if (x > 12) is missing parenthesis. 
The reason from mailing list:

Because the greater-than character is also the closing character for
freemarker tags. So, <#if x > 5 > is interpreted as <#if x > and the
following " 5 >" is just plain text.  Paranthesis avoid this - or the
alternate square bracket syntax.
--]

[/@plaintext.layout]
